/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package backing;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

/**
 *
 * @author XJ
 */
@ManagedBean
public class ClassChangeBacking {
    @ManagedProperty(value="")
    private String name;
    @ManagedProperty(value="")
    private String school;
    @ManagedProperty(value="")
    private String department;
    @ManagedProperty(value="")
    private String class_id;
    @ManagedProperty(value="")
    private String class_name;
    @ManagedProperty(value="")
    private String grade;
    @ManagedProperty(value="")
    private String major;
    @ManagedProperty(value="")
    private String detail;
    @ManagedProperty(value="")
    private String reason;
    @ManagedProperty(value="")
    private String notice_detial;
    @ManagedProperty(value="")
    private String school_opinion;
    
    private String college_edu_office_opinion;
    @ManagedProperty(value="")
    private String decision;

    public String getDecision() {
        return decision;
    }

    public void setDecision(String decision) {
        this.decision = decision;
    }

    private String[] disabled=new String[3];
    
    public ClassChangeBacking() {
    }

    public String getClass_id() {
        return class_id;
    }

    public void setClass_id(String class_id) {
        this.class_id = class_id;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getCollege_edu_office_opinion() {
        return college_edu_office_opinion;
    }

    public void setCollege_edu_office_opinion(String college_edu_office_opinion) {
        this.college_edu_office_opinion = college_edu_office_opinion;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNotice_detial() {
        return notice_detial;
    }

    public void setNotice_detial(String notice_detial) {
        this.notice_detial = notice_detial;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getSchool_opinion() {
        return school_opinion;
    }

    public void setSchool_opinion(String school_opinion) {
        this.school_opinion = school_opinion;
    }

  

    public String[] getDisabled() {
        return disabled;
    }

    public void setDisabled(String[] disabled) {
        this.disabled = disabled;
    }
    
    
    public String commitForm(){
        String outcome=null;
        return outcome;
    }
    
    public String setPermission(){
        String[] s={"false","true","true"};
        this.setDisabled(s);
        return "teacher_class_change_form";
    }
    public String fillForm(String s){
        if(s.equals("apply"))
            this.setPermission();
        return "teacher_class_change_form";
    }
}
